<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    let person = { name: 'zhangsan', age: 20, sex: '男' };
    let { name: myName } = person;
    console.log(myName);	// zhangsan
  </script>
</body>
</html>